package it.bambo.common.jpa;

import javax.persistence.metamodel.SingularAttribute;

/**
 * @author <a href="mailto:andreas@bambo.it">Andreas Baumgartner, andreas@bambo.it</a>
 *         Date: 15.10.10
 *         Time: 17:13
 */
public class QueryOrderEntry {

    private SingularAttribute attribute;

    private QueryOrder.OrderDirection direction;

    public QueryOrderEntry(SingularAttribute attribute, QueryOrder.OrderDirection direction) {
        this.attribute = attribute;
        this.direction = direction;
    }

    public SingularAttribute getAttribute() {
        return attribute;
    }

    public void setAttribute(SingularAttribute attribute) {
        this.attribute = attribute;
    }

    public QueryOrder.OrderDirection getDirection() {
        return direction;
    }

    public void setDirection(QueryOrder.OrderDirection direction) {
        this.direction = direction;
    }

}
